package com.hxgz.steel.service;

import com.hxgz.steel.common.ServerResponse;
import com.hxgz.steel.domain.Page;
import com.hxgz.steel.domain.User;

public interface ConsumerCenterService {

  ServerResponse check(User user, Page page, String startDate, String endDate, Integer status);

  ServerResponse checkOrder(Integer index, Integer status, Page page, String startDate,
      String endDate, User user);

  ServerResponse buyList(User user);

  ServerResponse merchantRankList();

  ServerResponse checkAskBuyById(String id);

  ServerResponse cancleQuotation(String id);

  ServerResponse offerBuy(String quId, String asId);

  ServerResponse buyForCreatOrder(String merchantId, String quotationId, String addressId,
      String money,
      Integer invoice, String remark, User user
  );

  /**
   * status和status_seller会同时修改
   */
  ServerResponse updateOrderStatus(Long id, Integer status, Long userId);

  ServerResponse repeatQuotation(Long askId, User user);

  ServerResponse deletQuotation(Long askId);

  ServerResponse appointAskBuyList(User user, Integer status, String startDate, String endDate,
      Page page);


  ServerResponse checkOrderDetail(String id);

  ServerResponse delOrderDetail(String id);

  ServerResponse getAddressList(Long userId);

  ServerResponse getAddress(Long userId);

  ServerResponse setAddress(Long userId,Long id);

  ServerResponse WXselforder(Integer status,Page page,Long userId);

  ServerResponse WXthirdorder(Integer status,Page page,Long userId);

  ServerResponse WxSelfOperatedBuy(Integer status,Page page,Long userId,Long merchantId);

  ServerResponse WxOperatedBuy(User user, Page page, String startDate, String endDate, Integer status);

  ServerResponse WxAppointAskBuyList(User user, Integer status, String startDate, String endDate,
                                   Page page);

  ServerResponse wxSelfBuyOrder(Integer status,Long userId,Page page);
}
